<%= error_messages_for :activity, :header_tag => "h1", :class => "alert red error rounded-8" %>

<fieldset>
	<legend><%= t :legend, :scope => [:activity, :title] %></legend>
	
	<dl class="rounded-4">
		<dt><%= f.label :title, t(:label, :scope => [:activity, :title]) %></dt>
		<dd><%= f.text_field :title %></dd>
	</dl>
</fieldset>

<fieldset>
	<legend><%= t :legend, :scope => [:activity, :description] %></legend>
	
	<dl class="rounded-4">
		<dt><%= f.label :description, t(:label, :scope => [:activity, :description]) %></dt>
		<dd class="hint"><small><%= t :hint, :scope => [:activity, :description] %></small></dd>
		<dd><%= f.text_area :description, :rows => 8 %></dd>
	</dl>
</fieldset>

<fieldset>
	<legend><%= t :legend, :scope => [:activity, :responsible] %></legend>
	
	<dl class="rounded-4">
		<dt><%= f.label :responsible_id, t(:label, :scope => [:activity, :responsible]) %></dt>
		<dd class="hint"><small><%= t :hint, :scope => [:activity, :responsible] %></small></dd>
		<dd><%= f.select :responsible_id, [[t(:choose_one),'']].concat(@project.users.collect{|u| [u.to_s + (u.id == current_user.id ? " (#{t(:me)})" : ''), u.id]}) %></dd>
	</dl>
</fieldset>

<fieldset>
	<legend><%= t :legend, :scope => [:activity, :milestone] %></legend>
	
	<dl class="rounded-4">
		<dt><%= f.label :milestone_id, t(:label, :scope => [:activity, :milestone]) %></dt>
		<dd class="hint"><small><%= t :hint, :scope => [:activity, :milestone] %></small></dd>
		<dd><%= f.select :milestone_id, [[t(:choose_one),'']].concat(@project.milestones.collect{|m| [m.to_s, m.id]}) %></dd>
	</dl>
</fieldset>